<?php use_stylesheet('main.css') ?>
<?php use_helper('Text') ?>
                                                                 
      <h1 ><?php echo $categories->getName() ?></h1>
      
      <?php foreach ($pager->getResults() as $i => $product): ?>
                                
	 <?php include_partial('sfProducts/products', array('shop_product' => $product, 'category' =>$categories)) ?>
	 
	 <?php endforeach; ?>
                                
         <?php if ($pager->haveToPaginate()): ?>                       

        <?php foreach ($pager->getLinks() as $page): ?>
      <?php if ($page == $pager->getPage()): ?>
        <?php echo $page ?>
      <?php else: ?>
        <a href="<?php echo url_for('shopcategories', $categories) ?>?page=<?php echo $page ?>"><?php echo $page ?></a>
      <?php endif; ?>
    <?php endforeach; ?>
    <?php endif; ?>

